home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDOS - The Amiga DOS Manual (19xx)(MegaDisc Digital Publishing).zip / MegaDOS - The Amiga DOS Manual (19xx)(MegaDisc Digital Publishing).adf / 1.3_INFO / 1.3_Shell < prev    next >
Text File  |  1985-11-27  |  6KB  |  139 lines

  1.  
  2.  
  3.                 USING THE NEW 1.3 CLI SHELL AND NEWCON:
  4.  
  5.    ######################################################################
  6.  
  7.  
  8.         Another big improvement in 1.3 is the existence of the SHELL, a
  9.    term that describes software that wraps itself around the CLI to give
  10.    more features, as described below. Note that you start up a new SHELL
  11.    by either double-clicking on the SHELL icon, or by entering NEWSHELL in
  12.    the CLI (See NEW_COMMANDS). In order to take advantage of the features
  13.    of the SHELL, you must MOUNT NEWCON: (the new CONSOLE HANDLER) and make
  14.    SHELL-SEG in the L directory RESIDENT (as happens in 1.3's default
  15.    startup-sequence). If you don't make SHELL-SEG resident, you'll get a
  16.    new CLI window rather than a new SHELL, and if NEWCON: has not been
  17.    MOUNTed then NEWSHELL will use the old CON: window.
  18.  
  19.  
  20.    FEATURES OF THE NEW SHELL
  21.  
  22.         * COMMAND LINE EDITING - if you make a typing mistake or change
  23.    your mind while typing, rather than deleting all you've typed, you can
  24.    use the ARROW keys to move back over the line, make your correction and
  25.    hit RETURN. SHIFT-LEFT_ARROW (or CTRL-A) and SHIFT-RIGHT_ARROW (or
  26.    CTRL-Z) will take you to the beginning or end of the line in one jump.
  27.    Other editing commands are:
  28.  
  29.         - The DEL key: deletes the character to the right of cursor
  30.         - The BACKSPACE key: delete the character to the left of cursor
  31.         - CTRL-K : delete from the cursor to the end of the line
  32.         - CTRL-U : delete from the cursor to the start of the line
  33.         - CTRL-X : delete the entire line
  34.         - CTRL-W : move cursor to the next tab stop
  35.  
  36.         * HISTORY - Another very useful feature which allows you to recall
  37.    previous commands used. Just use the UP arrow to recall previous
  38.    commands one at a time, which can then be re-used or edited then used.
  39.    To find a specific command, type the first part of the line and then
  40.    press SHIFT and the UP arrow (or CTRL-R). Having moved up with the UP
  41.    arrow key, you can then move back down with the DOWN arrow key. Or you
  42.    can move straight to the bottom of the history of commands by pressing
  43.    both SHIFT and DOWN arrow (or CTRL-B) - you'll then have a blank line
  44.    ready for a command.
  45.  
  46.  
  47.         * ALIAS - Another useful feature which lets you make shortcuts for
  48.    yourself with commonly used CLI commands. The format is:
  49.                   ALIAS <alias_name> <string>
  50.    where <alias_name> is the short form you give and which you'll use in
  51.    future; <string> is the full text of the command. For example
  52.    ALIAS L1 "list df1:"
  53.    will let you simply type L1 whenever you want to get a listing of df1:.
  54.    You can use an ALIAS as part of your command line - if you entered
  55.    ALIAS d1 "dir df1:"
  56.    and then entered
  57.    d1 opt a
  58.    the system would understand
  59.    dir df1: opt a
  60.  
  61.         To be able to substitute filenames in an alias, include SQUARE
  62.    BRACKETS ([]) in the alias. E.g.
  63.    ALIAS DA "dir [] opt a"
  64.    will allow  you to substitute any drive name or directory, as follows:
  65.    DA df1:
  66.    will be read by the system as
  67.    DIR DF1: OPT A
  68.  
  69.  
  70.    OTHER FEATURES:
  71.  
  72.         - Typing ALIAS by itself lists all the current aliases
  73.         - Remove an ALIAS by typing ALIAS <alias_name> only
  74.         - Note that aliases are linked specifically to particular SHELLs,
  75.           so if you create a new SHELL, your previous ALIASES won't
  76.           operate. But since the Batch File s:Shell-Startup is
  77.           automatically executed each time you open a new SHELL with the
  78.           NEWSHELL command, you can edit that Batch File to add your
  79.           frequently used ALIASES.
  80.         - If you create a Batch File which does some frequently used
  81.           function you can use the PROTECT command to set the SCRIPT BIT
  82.           on that file (see the description of the PROTECT command). Then
  83.           the SHELL will execute that file as an EXECUTE batch file
  84.           instead of as a command, and if you make the EXECUTE command
  85.           RESIDENT (see description), and put the S directory where you
  86.           keep Batch Files in the COMMAND PATH with the PATH command, you
  87.           can rapidly execute all kinds of Batch Files. You can also use
  88.           the ALIAS feature to give a short alias to the entire "EXECUTE
  89.           MYBatchFile" command.
  90.  
  91.  
  92.         * REDIRECTION - Apart from the usual redirection capabilities,
  93.    using the symbols "<" and ">" (without quotes, e.g. dir > prt: opt a),
  94.    there is a further form using ">>", which APPENDS further information
  95.    to an existing file. So entering
  96.    dir > ram:DirTest
  97.    dir >> ram:DirTest c:
  98.    will first create a directory listing of the current directory under
  99.    the name DIRTEST in RAM, and the next line will add the full listing of
  100.    the C directory of the system disk to the bottom of that file.
  101.  
  102.  
  103.  
  104.    OTHER SHELLS AVAILABLE
  105.  
  106.    * WSHELL
  107.    Written by Bill Hawes, the man responsible for CONMAN (which is almost
  108.    a shell in itself, and available as shareware on the Fish disks) this
  109.    shell includes Conman 1.3, and provides the features mentioned above
  110.    along with:
  111.  
  112.             Command aliases and abbreviations
  113.             Extended Prompt string/window title options
  114.             Concurrent Piping (ie the output of one process automatically
  115.                                becomes the input of the next, & so on)
  116.             Transparent support for REXX-language Macros
  117.             Fixes the AmigaDOS Execute() function
  118.    It is designed to run with Conman, TxED, REXX, and the AmigaDOS
  119.    Replacement Project commands.
  120.  
  121.    * TSHELL
  122.    More like a clone of the various UNIX shells, it adapts that style to
  123.    the Amiga, and provides Unix-type filenames, with a syntax similar to C
  124.    and a lot of powerful features useful for C programmers in particular.
  125.    Available for US$50 from: Metran Technology, P O Box 890, West Oneonta,
  126.    NY 13861 USA
  127.  
  128.         Anyone who's using the CLI regularly is wasting a lot of time and
  129.    effort if not using a shell such as those above, or perhaps CONMAN or
  130.    CSH, another Public Domain shell by Matt Dillon which quite a lot of
  131.    people swear by.
  132.  
  133.  
  134.  
  135.    ######################### END OF 1.3_SHELL ###########################
  136.  
  137.  
  138.  
  139.